package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

 void save1(DishDto dishDto);

 R<Page> page1(Integer page, Integer pageSize, String name);

 Page<DishDto> pageByParams(Integer page, Integer pageSize, String name);

 DishDto getByIdWithFlavor(Long id);

 void updateWithFlavor(DishDto dishDto);

 R<String> delete1(List<Long> ids);

 R<String> upDateStatus(Integer status, List<Long> ids);

// R<List<Dish>> getDish(Dish dish);

 R<List<DishDto>> getDish(Dish dish);
}
